import request from '@/utils/request'

const baseUrl = "http://auth.daxigua.com"

export function login(data) {
  return request({
    // baseURL: '/dev-api',
    url: `${baseUrl}/admin/user/login`,
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    // baseURL: '/dev-api',
    url: `${baseUrl}/admin/user/info`,
    method: 'get',
  })
}

export function logout() {
  return request({
    // baseURL: '/dev-api',
    url: `${baseUrl}/admin/user/logout`,
    method: 'post'
  })
}
